package com.example.demo.importdemo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

@Service
@EnableMyCache(type = CacheType.LOCAL)
public class ImportService {

    @Autowired
    private CacheService cachService;

    @PostConstruct
    public void init(){
        System.out.printf(cachService.setData("123"));
    }
}
